



// Correlation between duration and the size of a relationship  

use  base_4decile$firstyear$lastyear, clear

g lduration=log(length_bps)
g lexport=log(export)
reg lduration lexport
outreg2 using $outputpath/table_online_3.xls, replace ctitle(log(exports)) dec(3)
reghdfe lduration lexport, abs($product)
outreg2 using $outputpath/table_online_3.xls, append ctitle(log(exports)) dec(3)
reghdfe lduration lexport, abs(id_bp)
outreg2 using $outputpath/table_online_3.xls, append ctitle(log(exports)) dec(3)